<div class="box">
<div class="content viewtools">
{% if user %}
Add to collection:<br />
<form action="/econoplot/add_to_collection/" class="add_to_collection" method="POST">
<select name="collection">
<option>--- My Collections ---</option>
{% for collection in my_collections %}
<option value="{{ collection.id }}">{{ collection.name }}</option>
{% endfor %}
{% if is_admin %}
<option>--- Admin ---</option>
{% for collection in admin_collections %}
<option value="{{ collection.id }}">{{ collection.name }}</option>
{% endfor %}
{% endif %}
</select>
<input type="hidden" name="chart" value="{{ chartview.key }}" />
</form>
{% endif %}
</div>
</div>
